package com.rw.factory;

import com.rw.pojo.TestSubA;
import com.rw.pojo.TestSubB;

/**
 * @author rabit
 */
public class TestActiveFactory {
    //
    public TestSubA getInstance(){
        TestSubA a = new TestSubA();
        a.setName("TestFactory创建的A");
        return a;
    }
//    public TestSubB getInstance2(){
//        TestSubB a = new TestSubB();
//        return a;
//    }
}
